<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>管理员个人中心</title>
    <%request.setAttribute("PATH",request.getContextPath());%>
    <!-- Bootstrap -->
    <link href="${PATH}/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="${PATH}/js/jQuery-3.5.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="${PATH}/js/bootstrap.min.js"></script>
    <script src="${PATH}/js/details.js"></script>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,
     minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <script>
        init(${userLogin.id})
    </script>
    <style>
        .head {
            font-size: 36px;
            text-align: center;
            font-style:oblique;
            margin-bottom: 5%;
        }
    </style>
</head>
    <body>
    <div class="col-lg-12">
        <h4 class="head" >个人信息</h4>
    </div>
    <div id="updateFrom" class="form-horizontal" style="margin: 10% 0 0 10%" >
        <input id="aid" hidden="hidden" type="text" name="id">
        <div class="form-group">
            <label for="aname1" class="col-sm-2 control-label">姓&nbsp;&nbsp;名：</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="aname1" placeholder="name" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">性&nbsp;&nbsp;别：</label>
            <div class="col-sm-6">
                <label class="radio-inline">
                    <input type="radio" id="sex1_2" name="g" disabled="disabled"> 男
                </label>
                <label class="radio-inline">
                    <input type="radio" id="sex2_2" name="g" disabled="disabled"> 女
                </label>
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-2 control-label">密&nbsp;&nbsp;码：</label>
            <div class="col-sm-6">
                <input type="password" id="apassword" class="form-control" placeholder="password" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">权&nbsp;&nbsp;限：</label>
            <div class="col-sm-6">
                <label class="radio-inline">
                    <input type="radio" id="power_1" name="p" disabled="disabled"> 超级
                </label>
                <label class="radio-inline">
                    <input type="radio" id="power_2" name="p" disabled="disabled"> 普通
                </label>
            </div>
        </div>
            <a href="${PATH}/home.jsp" class="btn btn-primary" role="button" style="margin-left: 20%">返回</a>
            <button type="button" onclick="javascript:updateUser(${userLogin.id})" class="btn btn-primary" style="margin-left: 22%">修改</button>
    </div>


    <!-- Modal -->
    <div class="modal fade" id="user_Modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel2">用户信息修改</h4>
                </div>
                <div class="modal-body">
                    <form id="u_From" class="form-horizontal">
                        <input id="id" hidden="hidden" type="text" name="id">
                        <div class="form-group">
                            <label for="aname" class="col-sm-2 control-label">姓&nbsp;&nbsp;名：</label>
                            <div class="col-sm-10">
                                <input type="text" name="name" class="form-control" id="aname" placeholder="name" readonly="readonly">
                            </div>
                        </div>
                        <div class="form-group">
                            <input id="gender" hidden="hidden" type="text" name="gender">
                            <label for="sex1" class="col-sm-2 control-label">性&nbsp;&nbsp;别：</label>
                            <div class="col-sm-10">
                                <label class="radio-inline">
                                    <input type="radio" name="gender" checked="checked" id="sex1" value=""男 disabled="disabled"> 男
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="gender" id="sex2" value="女" disabled="disabled"> 女
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password_j" class="col-sm-2 control-label">旧&nbsp;密&nbsp;码：</label>
                            <div class="col-sm-10">
                                <input type="password" class="form-control" id="password_j" placeholder="请输入原密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password_x" class="col-sm-2 control-label">新&nbsp;密&nbsp;码：</label>
                            <div class="col-sm-10">
                                <input type="password" name="password" class="form-control" id="password_x" placeholder="请输入新密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <input id="power" hidden="hidden" type="text" name="power">
                            <label class="col-sm-2 control-label">权&nbsp;&nbsp;限：</label>
                            <div class="col-sm-10">
                                <label class="radio-inline">
                                    <input type="radio" name="power" id="power1_1" value="1" disabled="disabled"> 超级
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="power" checked="checked" id="power1_2" value="0" disabled="disabled"> 普通
                                </label>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" id="admin_Submit" class="btn btn-primary">Save</button>
                </div>
            </div>
        </div>
    </div>


</body>
</html>
